package net.web.service.impl;

import net.web.common.utils.PageInfo;
import net.web.dao.ClassDao;
import net.web.entity.Class;
import net.web.service.ClassService;

import java.util.List;

public class ClassServiceImpl implements ClassService {

    private ClassDao classDao = new ClassDao();

    @Override
    public PageInfo<Class> pageList(int pageNo, int pageSize, Class cls) {
        return classDao.pagelist(pageNo, pageSize, cls);
    }

    @Override
    public List<Class> list() {
        return classDao.list();
    }

    @Override
    public boolean insert(Class cls) {
        return classDao.insert(cls);
    }

    @Override
    public boolean delete(int id) {
        return classDao.delete(id);
    }

    @Override
    public boolean update(Class cls) {
        return classDao.update(cls);
    }
}